package com.atguigu.bean;

public class OrderItem {
    private Integer item_id;
    private String book_name;
    private Double price;
    private String img_path;
    private Integer item_count;
    private Double item_amount;
    private Integer order_id;

    public OrderItem() {
    }

    public OrderItem(Integer item_id, String book_name, Double price, String img_path, Integer item_count, Double item_amount, Integer order_id) {
        this.item_id = item_id;
        this.book_name = book_name;
        this.price = price;
        this.img_path = img_path;
        this.item_count = item_count;
        this.item_amount = item_amount;
        this.order_id = order_id;
    }

    public Integer getItem_id() {
        return item_id;
    }

    public void setItem_id(Integer item_id) {
        this.item_id = item_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public Integer getItem_count() {
        return item_count;
    }

    public void setItem_count(Integer item_count) {
        this.item_count = item_count;
    }

    public Double getItem_amount() {
        return item_amount;
    }

    public void setItem_amount(Double item_amount) {
        this.item_amount = item_amount;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "item_id=" + item_id +
                ", book_name='" + book_name + '\'' +
                ", price=" + price +
                ", img_path='" + img_path + '\'' +
                ", item_count=" + item_count +
                ", item_amount=" + item_amount +
                ", order_id=" + order_id +
                '}';
    }
}
